<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>WA Canvas</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    #wa-content {
      width: 500px;
      height: 500px;
      border: 1px solid black;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  </style>
</head>

<body>
  <div id="wa-content"></div>
</body>
<script type="text/javascript" src="./wasm_exec.js"></script>
<script>
  // if (!WebAssembly.instantiateStreaming) {
  //   WebAssembly.instantiateStreaming = async (resp, importObject) => {
  //     const source = await (await resp).arrayBuffer();
  //     return await WebAssembly.instantiate(source, importObject);
  //   };
  // }

  // const go = new Go();
  // WebAssembly.instantiateStreaming(fetch('xxx.wasm'), go.importObject).then(res => {
  //   go.run(res.instance)
  // })
</script>
<script src="./index.js"></script>

</html>